<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>HideWindow</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">HideWindow()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#3A3966"><b>HideWindow</b></font>(#Window, State [, Flags])  </blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Hides or shows the specified window. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Window</i></td>
<td width="90%"> 
要使用的窗口. 

</td></tr>
<tr><td><i>State</i></td>
<td> 
它可以是下列值之一︰ 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#True</font> : 隐藏窗口.
  <font color="#924B72">#False</font>: 显示窗口. 自动激活窗口 （在获得焦点时），
          除非设置了 <font color="#924B72">#PB_Window_NoActivate</font> 标志.
</font></pre>

</td></tr>
<tr><td><i>Flags</i></td>
<td> 
可以是下列值的组合︰ 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Window_NoActivate</font> : 窗口将会显示，但不是激活 (仅在未隐藏时有效窗口)。
  <font color="#924B72">#PB_Window_ScreenCentered</font>︰ 窗外将是屏幕居中 (仅在未隐藏时有效窗口)。
  <font color="#924B72">#PB_Window_WindowCentered</font>︰ 窗外将是中心的窗口 (仅当未隐藏时有效窗口)。
</font></pre>

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">If</font></b> <font color="#3A3966">OpenWindow</font>(0, 200, 200, 220, 100, "HideWindow()", <font color="#924B72">#PB_Window_SystemMenu</font>)
   
<font color="#3A3966">   ButtonGadget  </font>(1, 10, 60, 200, 30, "Hide the window")
   
   <b><font color="#3A3966">Repeat</font></b>
     Event =<font color="#3A3966"> WaitWindowEvent</font>()
          
     <b><font color="#3A3966">Select</font></b> Event
     
       <b><font color="#3A3966">Case</font></b> <font color="#924B72">#PB_Event_Gadget</font>
         <b><font color="#3A3966">Select</font></b> <font color="#3A3966">EventGadget</font>()
           <b><font color="#3A3966">Case</font></b> 1
             
<font color="#3A3966">             HideWindow</font>(0, <font color="#924B72">#True</font>)
             <b><font color="#3A3966">Debug</font></b> "Window hidden."
<font color="#3A3966">             MessageRequester</font>("Info", "Press OK to show the window")
<font color="#3A3966">             HideWindow</font>(0, <font color="#924B72">#False</font>)
             <b><font color="#3A3966">Debug</font></b> "窗口是可见的."
                              
           <b><font color="#3A3966">EndSelect</font></b>
            
     <b><font color="#3A3966">EndSelect</font></b>
   <b><font color="#3A3966">Until</font></b> Event = <font color="#924B72">#PB_Event_CloseWindow</font>
 <b><font color="#3A3966">EndIf</font></b>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="openwindow.html">OpenWindow()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=getwindowtitle.html>GetWindowTitle()</a> - <a href="index.html">Windows 索引 </a> - <a href="iswindow.html">IsWindow()</a> -&gt;<br><br>

</body></html>